package com.chinasoftinc.facommon;

/**
 * 功能描述
 *
 * @since 2022-01-26
 */
public class DeviceControlConstants {
    /**
     * 设备ID的KEY
     */
    public static final String DEVICE_ID = "deviceId";

    /**
     * 与js侧约定的系统是否是暗黑模式属性Key
     */
    public static final String IS_LIGHT = "isLight";

    /**
     * code字符串常量
     */
    public static final String REPLY_CODE = "code";

    /**
     * 关闭entry FA的常量，与Entry模块约定
     */
    public static final String ACTION_CLOSE = "entry.fa.close";

    /**
     * 更新设备ID的现场延迟
     */
    public static final long UPDATE_DEVICEID_DELAY = 500L;

    /**
     * 告知JAVA PA deviceId更新的命令码
     */
    public static final int ACTION_MESSAGE_CODE_UPDATE_DEVICE_ID = 1007;

    /**
     * JA FA告知JAVA PA 连接蓝牙设备的命令码
     */
    public static final int ACTION_MESSAGE_CODE_CONNECT = 1008;

    /**
     * 断开连接
     */
    public static final int ACTION_MESSAGE_CODE_DISCONNECT = 1009;

    /**
     * 成功的int型
     */
    public static final int SUCCESS = 0;

    /**
     * 订阅消息命令码
     */
    public static final int ACTION_MESSAGE_CODE_SUBSCRIBE = 1001;

    /**
     * 取消订阅命令码
     */
    public static final int ACTION_MESSAGE_CODE_UNSUBSCRIBE = 1002;

    /**
     * 发送命令的命令码
     */
    public static final int ACTION_MESSAGE_CODE_SEND_COMMAND = 1003;

    /**
     * JA FA告知JAVA PA deviceId命令码
     */
    public static final int ACTION_MESSAGE_CODE_NOTIFY_DEVICE_ID = 1006;

    /**
     * 重新配网请求
     */
    public static final int ACTION_RE_CONFIG_NET = 1107;


    // 存储订阅者标识
    public static final int ACTION_ADD_SUBSCRIBER_IDENTITY = 1010;
    // 添加订阅者
    public static final int ACTION_ADD_SUBSCRIBER = 1011;
    // 移除订阅者
    public static final int ACTION_REMOVE_SUBSCRIBER = 1012;

    /**
     * 命令下发serviceId字符串
     */
    public static final String MESSAGE_KEY_SERVICE_ID = "serviceId";

    /**
     * 命令下发参数字符串
     */
    public static final String MESSAGE_KEY_CHARACTERISTIC = "param";

    /**
     * 成功字符串
     */
    public static final String STATE_SUCCESS = "success";

    /**
     * 失败字符串
     */
    public static final String STATE_FAIL = "fail";

    /**
     * hilink 服务连接
     */
    public static final int AI_LIFE_SERVICE_CONNECT = 0;
    /**
     * 获取设备信息
     */
    public static final int GET_DEVICE = 6;
    /**
     * 发送指令
     */
    public static final int SEND_COMMAND = 9;
    /**
     * 跟新DeviceId消息
     */
    public static final int UPDATE_DEVICEID = 10;

    /**
     * BLE设备状态变化消息
     */
    public static final int DATA_TYPE_BLE_CHARACTERISTIC_CHANGED = 11;

    /**
     * BLE连接状态改变消息
     */
    public static final int DATA_TYPE_BLE_CONNECTION_STATE_CHANGED = 12;

    /**
     * 获取Wifi连接数据
     */
    public static final int DATA_TYPE_WIFI_GET_PROFILE_DATA = 14;


    /////////////////////////WIFI///////////////////////////////////
    /**
     * 设备添加
     */
    public static final int DEVICE_ADD_LISTENER = 2001;
    /**
     * 设备 attach
     */
    public static final int DEVICE_ATTACH_LISTENER = 2002;
    /**
     * 设备删除
     */
    public static final int DEVICE_DELETE_LISTENER = 2003;
    /**
     * 设备基础信息
     */
    public static final int DEVICE_INFO_LISTENER = 2004;
    /**
     * 设备状态信息
     */
    public static final int PROFILE_DATA_LISTENER = 2005;

    /**
     * wifi开关状态变更
     * { state: 0 |1 } , 0: wifi关闭, 1: wifi打开
     */
    public static final int WIFI_ACTIVE_STATE_CHANGE = 2006;
    /**
     * wifi连接状态变更
     * { state: 0 |1 |  } , 0: , 1: wifi已连接
     */
    public static final int WIFI_CONN_STATE_CHANGE = 2007;

    private DeviceControlConstants() {
    }
}
